Skip to content

Conversation

dedsec995
Copy link

Add Support to use Kinect as webcam on linux
Just found an old Kinectv2 lying around and wanted to use it as webcam as it has decent camera. Searched a lot (I mean a lot) and found nothing.
So I modified Protonect to use Kinect as webcam
The C++ code captures RGB video frames from a Kinect device using libfreenect2 and writes them to a virtual webcam device (/dev/video10) with the help of opencv created by v4l2loopback.

@dedsec995
Copy link
Author

dedsec995 commented Feb 6, 2025

This commit try to solve the issue #1144 #1151 #1175. It contains an app inside examples called kinect_webcam that allows users to use kinect rgb as a webcam on Linux
It introduces 2 new dependencies OpenCV and v4l2loopback
@JoshBlake

@accplan
Copy link

accplan commented Apr 6, 2025

thank you so much, it works perfectly except chromium-based apps like Discord refuse to recognize the camera. Turns out chromium accepts only specifics pixel formats, so I replaced V4L2_PIX_FMT_BGR24 with V4L2_PIX_FMT_RGB24 and now it works even with Discord!
Took the constant from this comment: v4l2loopback/v4l2loopback#274 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants